package cn.yhbk.web.modules.manager.Service.Impl;

import cn.yhbk.web.modules.manager.Pojo.DTO.Message.MessageDto;
import cn.yhbk.web.modules.manager.Pojo.Entity.TbMessage;
import cn.yhbk.web.modules.manager.Mapper.TbMessageMapper;
import cn.yhbk.web.modules.manager.Service.ITbMessageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 消息通知表 服务实现类
 * </p>
 *
 * @author 有何不可
 * @since 2023-08-05
 */
@Service
public class TbMessageServiceImpl extends ServiceImpl<TbMessageMapper, TbMessage> implements ITbMessageService {

    @Autowired
    private TbMessageMapper tbMessageMapper;

    @Override
    public MessageDto queryMessageInfoById(Long id) {
        return tbMessageMapper.queryMessageInfoById(id);
    }

    @Override
    public Boolean readMessageByIdList(List<Long> messageIdList) {
        return tbMessageMapper.readMessageByIdList(messageIdList);
    }
}
